package com.ljlobserv.demo.observe;

import com.ljlobserv.demo.Observe;
import com.ljlobserv.demo.dao.ArticleDao;
import com.ljlobserv.demo.dao.ArticleDaoImpl;

/**
 * ClassName：ArticleObserve
 * Description：
 * Create by Administrator
 * Date：2020/8/25 0025 11:03
 */
public class ArticleObserve implements Observe {
    ArticleDao articleDao = new ArticleDaoImpl();

    public void insert(Long id) {
        System.out.println("通知ArticleObserve添加数据中...");
        articleDao.insert(id);

    }

    public void delete(Long id) {
        System.out.println("通知ArticleObserve删除数据中...");
        articleDao.delete(id);
    }
}
